<?php

require_once('../config.php');
require_once('database.php');
require_once('user.php');

$del = new User();
$user = User::find_by_id($_GET['id']);


if($user){

	$del->delete($user->id);
	header("location: " . $config['base_url'] . "home.php?action=read");

}